#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QVBoxLayout>
#include "csearchlineedit.h"
#include <QDebug>



MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this->setStyleSheet("background-color:#1A1E21");
    CSearchLineEdit* pEdit = new CSearchLineEdit(this);

    QVBoxLayout* pVLay = new QVBoxLayout(this);
    pVLay->addWidget(pEdit);

    pEdit->setFixedSize(800,100);

    connect(pEdit, &CSearchLineEdit::sig_Search,this, [=](const QString& text)
    {
        qDebug() << "搜索内容是: " << text;
    });

}

MainWindow::~MainWindow()
{
    delete ui;
}
